package com.java2007.hotel.dao;

import com.java2007.hotel.pojo.OrderDetail;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Reckeys
 * @version V1.0
 * @date 2021/01/28
 **/
public interface OrderDetailDao {
    /**
     * 添加订单详情
     * @param orderDetail
     * @return
     * @throws SQLException
     */
    int addorderDetail(OrderDetail orderDetail) throws SQLException;

    /**
     * 通过订单ID查询订单详情
     * @param detailOrderId
     * @return
     */
    List<OrderDetail> findOrderDetail(Long detailOrderId) throws SQLException;
}
